package com.xinyou.u8c.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import io.swagger.annotations.ApiModel;
import lombok.*;
import org.springframework.beans.factory.annotation.Value;

/**
 * <p>
 *
 * </p>
 *
 * @author chq
 * @since 2023-09-15
 */
@Data
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Bfaccountingdepartmentzjb对象", description = "")
public class Bfaccountingdepartmentzjb implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private String accorgid;

    private String admindeptid;

    private String code;

    private String disableyear;

    private String fullnameChs;

    @Value("0")
    private String fullnamerole;

    private String fullnameCht;

    private String fullnameEn;

    private String fullnameEs;

    private String fullnamePt;

    @Value("0")
    private String isdisable;

    private String mnemoniccode;

    private String nameChs;

    private String nameCht;

    private String nameEn;

    private String nameEs;

    private String namePt;

    private String parentid;

    private String remark;

    @Value("0")
    private String sortorder;

    private String timestampCreatedby;

    private String timestampCreatedon;

    private String timestampLastchangedby;

    private String timestampLastchangedon;

    private String treeinfoIsdetail;

    private String treeinfoLayer;

    private String treeinfoPath;

    @Value("BFPUBLIC")
    private String securitylevel;

    public List<String> getHeader() {
        return new ArrayList<>(Arrays.asList("ID;ACCORGID;ADMINDEPTID;CODE;DISABLEYEAR;FULLNAME_CHS;FULLNAMEROLE;FULLNAME_CHT;FULLNAME_EN;FULLNAME_ES;FULLNAME_PT;ISDISABLE;MNEMONICCODE;NAME_CHS;NAME_CHT;NAME_EN;NAME_ES;NAME_PT;PARENTID;REMARK;SORTORDER;TIMESTAMP_CREATEDBY;TIMESTAMP_CREATEDON;TIMESTAMP_LASTCHANGEDBY;TIMESTAMP_LASTCHANGEDON;TREEINFO_ISDETAIL;TREEINFO_LAYER;TREEINFO_PATH;SECURITYLEVEL".split(";")));
    }

    public String[] getFields() {
        return new String[]{"id","accorgid","admindeptid","code","disableyear","fullnameChs","ullnamerole","fullnameCht","fullnameEn","fullnameEs","fullnamePt","isdisable","mnemoniccode","nameChs","nameCht","nameEn","nameEs","namePt","parentid","remark","sortorder","timestampCreatedby","timestampCreatedon","timestampLastchangedby","timestampLastchangedon","treeinfoIsdetail","treeinfoLayer","treeinfoPath","securitylevel"};
    }

}
